package IC.Types;

public class PrimitivesType  extends Type {
	public PrimitivesType(String name){
		super(name);
	}
	
	public boolean subtypeOf(Type t){
		if (this.name == "null"){
			return !((t.name == "int") || (t.name == "boolean") || (t.name == "void"));
		}
		if (t == this) {
			return true;
		}
		else {
			return false;
		}
	}
}

